package com.inforich.app.api.dto;

import java.math.BigDecimal;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/31
 */
@Data
@EqualsAndHashCode()
public class DriverDTO {

  private Long id;
  @NotBlank(message = "车牌号不能为空")
  @Size(max = 10)
  private String carNumber;
  @NotBlank(message = "姓名不能为空")
  @Size(max = 10)
  private String name;
  @NotBlank(message = "联系方式不能为空")
  @Size(max = 11)
  private String phone;
  @NotNull(message = "载重不能为空")
  private BigDecimal vehicleLoad;
  @NotBlank(message = "驾照不能为空")
  @Size(max = 255)
  private String drivingLicenseImageId;
  @NotNull(message = "车辆类型不能为空")
  private Long carTypeId;
  @NotNull(message = "身份证不能为空")
  private String idnumber;
  private String videoUrl;
  /**
   * 准运证图片
   */
  private String transportPermitImage;
}
